Release 10.1A: OpenEdge Data Management:
SQL Reference
SQLCursor.getParam
Retrieves the values of Java
OUTandINOUTparameters.Format
inout_var = getParam( intfieldIndex, shortfieldType) ;Returns
OUTorINOUTvariableParameters
inout_varThe target variable into which the value of an
OUTorINOUTparameter is stored.fieldIndexAn integer that specifies the position of the parameter in the parameter list.
fieldTypeA short integer that specifies the data type of the parameter. The allowable defined values for
fieldTypeare listed in Table 55, grouped by category of data type.
Throws
DhSQLExceptionNotes
- The
getParam()method returns the value of anINOUTorOUTparameter identified by the number you specify in thefieldIndexparameter. getParam()returns the value as an object of the data type you specify in thefieldTypeparameter. SincegetParam()returns the result as an instance of class Object, you must explicitly cast yourinout_varvariable to the correct data type.- If the
OUTorINOUTparameter is of data typeCHARACTER, thengetParamreturns a JavaStringObject. You must declare a procedure variable of typeString, and explicitly cast the value returned bygetParamto typeString. Before callinggetParam()you must call theSQLCursor.wasNULLmethod to test whether the returned value isNULL. IfgetParam()is called for aNULLvalue, it raises aDhSQLException.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |